package com.hdsx.restful.ygzt.czctkd.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hdsx.ao.base.BaseOpearte;
import com.hdsx.restful.ygzt.czctkd.bean.Czctkd;
import com.hdsx.restful.ygzt.czctkd.mapper.CzctkdMapper;
import com.hdsx.restful.ygzt.czctkd.service.CzctkdServer;
/**
 * czctkdServer实现类
 *
 */
@Service
public class CzctkdServerImpl extends BaseOpearte<Czctkd> implements CzctkdServer {

	public CzctkdServerImpl() {
		super("GIS_CZCTKD");
	}

	@Resource(name="czctkdMapper")
	private CzctkdMapper mapper;

	@Override
	public int queryCount(String xzqhbm, String zdmc) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name", zdmc);
		return mapper.queryCount(parameter);
	}

	@Override
	public List<Czctkd> queryList(String xzqhbm, String zdmc, int begin,
			int end) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name", zdmc);
		parameter.put("begin", begin);
		parameter.put("end", end);
		List<Czctkd> lists=mapper.queryList(parameter);
		return lists;
	}

	@Override
	public Czctkd queryById(String id) {
		return mapper.selectById(id);
	}
	
	@Override
	public List<String> selectName(String name){
		return mapper.selectName(name);
	}
}
